#ifndef LIBACCENT_ALGORITHMS_FOR_EACH_HPP
#define LIBACCENT_ALGORITHMS_FOR_EACH_HPP

namespace accent
{

  template <typename Range, typename Action>
  Action for_each(Range r, Action a) {
    for (; !r.empty(); r.pop_front()) {
      a(r.front());
    }
    return a;
  }

}

#endif
